package com.atguigu.realtime.gmallpublisher.service;

import com.atguigu.realtime.gmallpublisher.bean.VisitorStats;
import com.atguigu.realtime.gmallpublisher.mapper.VisitorStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/3/27 10:36
 */
@Service
public class VisitorStatsServiceImp implements VisitorStatsService{
    
    @Autowired
    VisitorStatsMapper visitor;
    @Override
    public List<VisitorStats> getVisitorStatsByHour(int date) {
        return visitor.getVisitorStatsByHour(date);
    }
    
    @Override
    public List<VisitorStats> getVisitorStatsByNewFlat(int date) {
        return visitor.getVisitorStatsByNewFlat(date);
    }
    
}
